package com.twu.biblioteca;

public class Customer {
    int username;
    String password;
    boolean loggedIn;
    String email;
    String phoneNumber;

    public Customer(int username, String password, String email, String phoneNumber) {
        this.username = username;
        this.password = password;
        this.loggedIn = false;
        this.email = email;
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public int getUsername() {
        return username;
    }

    public void setLoggedIn() {
        this.loggedIn = true;
    }

    public boolean getLoggedIn() {
        return loggedIn;
    }

    public boolean passwordEquals(String password) {
        return this.password.equals(password);
    }
}
